package com.kgc.fk.controller;

import com.kgc.basic.util.ResponseMsg;
import com.kgc.collection.remote.CostThingsApi;
import com.kgc.fk.service.CostThingService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class CostThingController implements CostThingsApi {
    private Logger logger = LoggerFactory.getLogger(CostThingController.class);
    @Resource
    private CostThingService costThingService;


    @Override
    public ResponseMsg getAllThing() {
        logger.info("getAllThing start");
        ResponseMsg responseMsg = costThingService.getALlCostThing();
        logger.info("getAllThing end responseMsg = {}", responseMsg);
        return responseMsg;
    }
}
